home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 4.0 KB | 185 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:FocusSet.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODFocusSet_xh
- #define SOM_ODFocusSet_xh
-
- class ODFocusSet;
-
- #define ODFocusSet_MajorVersion 0
- #define ODFocusSet_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODFocusSet_API
- #define ODFocusSet_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
- class ODFocusSetIterator;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODFocusSet Class */
- SOMEXTERN SOMClass * SOMLINK ODFocusSetNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODFocusSet class object, and the methods it introduces. */
- typedef struct ODFocusSetClassDataStructure {
- SOMClass *classObject;
- somMToken InitFocusSet;
- somMToken Add;
- somMToken Remove;
- somMToken Contains;
- somMToken CreateIterator;
- somMToken GetImplementation;
- } ODFocusSetClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODFocusSetClassDataStructure * ODFocusSetGetClassData ( void );
- # undef ODFocusSetClassData
- # define ODFocusSetClassData (*ODFocusSetGetClassData())
- #else
- SOMEXTERN ODFocusSetClassDataStructure ODFocusSetClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODFocusSet ODFocusSetClassData.classObject
-
- /* The API to parentMtabs for ODFocusSet, and the instance data it introduces. */
- SOMEXTERN struct ODFocusSetCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODFocusSetCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODFocusSet
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODFocusSet_InitFocusSet)(ODFocusSet *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODFocusSet_Add)(ODFocusSet *somSelf, Environment *ev,
- ODTypeToken focus);
- typedef void (* SOMLINK somTD_ODFocusSet_Remove)(ODFocusSet *somSelf, Environment *ev,
- ODTypeToken focus);
- typedef ODBoolean (* SOMLINK somTD_ODFocusSet_Contains)(ODFocusSet *somSelf, Environment *ev,
- ODTypeToken focus);
- typedef ODFocusSetIterator* (* SOMLINK somTD_ODFocusSet_CreateIterator)(ODFocusSet *somSelf, Environment *ev);
- }
-
- #endif /* ODFocusSet_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODFocusSet
- */
- class ODFocusSet : public ODObject
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODFocusSetClassData.classObject)
- ODFocusSetNewClass(ODFocusSet_MajorVersion,ODFocusSet_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODFocusSetClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODFocusSetClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
- /* public method: InitFocusSet */
- void InitFocusSet(Environment *ev)
- {
- SOM_Resolve(this,ODFocusSet,InitFocusSet)
- (this,ev);
- }
-
-
- /* public method: Add */
- void Add(Environment *ev,
- ODTypeToken focus)
- {
- SOM_Resolve(this,ODFocusSet,Add)
- (this,ev,focus);
- }
-
-
- /* public method: Remove */
- void Remove(Environment *ev,
- ODTypeToken focus)
- {
- SOM_Resolve(this,ODFocusSet,Remove)
- (this,ev,focus);
- }
-
-
- /* public method: Contains */
- ODBoolean Contains(Environment *ev,
- ODTypeToken focus)
- {
- return SOM_Resolve(this,ODFocusSet,Contains)
- (this,ev,focus);
- }
-
-
- /* public method: CreateIterator */
- ODFocusSetIterator* CreateIterator(Environment *ev)
- {
- return SOM_Resolve(this,ODFocusSet,CreateIterator)
- (this,ev);
- }
-
-
-
- }; /* ODFocusSet */
-
-
-
- #endif /* SOM_ODFocusSet_xh */
-